<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="books.borrowing.helpers.*"%>
<%@ page import="books.borrowing.entity.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
	content="text/html; charset=windows-1252" />
<title>ELibrary - Enregistrez vous</title>
<link rel="stylesheet" type="text/css" href="style.css" />

</head>
<body>
	<div id="wrap">

		<div class="header">
			<div class="logo">
				<a href="index.html"><img src="images/logo.gif" alt="" title=""
					border="0" /></a>
			</div>
			<div id="menu">
				<ul>
					<li class="selected"><a href="index.html">Accueil</a></li>
					<li><a href="/ELibrary/catalog">Consulter le catalogue</a></li>
				</ul>
			</div>


		</div>


		<div class="center_content">
			<div class="left_content">
				<%
					String register_status = (String) session
							.getAttribute("register_status");
					session.setAttribute("register_status", null);
					String registerClass = "";
					String registerMessage = "";
					if (register_status == "FAILED" || register_status == "FAILED_REGISTER") {
						String fail_message = (register_status=="FAILED") ? "Erreur lors de l'inscription, veuillez verifier tous les champs" : "Impossible d'inscrire l'utilisateur, existe t-il déja ?";
						registerClass = "style='border:1px dashed red;'";
						registerMessage = "<p style='color:red; font-weight:bold;'>"+fail_message+"</p>";
					}
				%>
				
				
				<div class="contact_form" <%=registerClass%>>
					<div class="form_subtitle">Creer un nouveau compte</div>
					<form action="register" name="register" method="post">
						<%=registerMessage%>

						<div class="form_row">
							<label class="contact"><strong>Votre nom:</strong></label> <input
								type="text" name="usr_name" class="contact_input"
								value="<%=session.getAttribute("usr_name").toString()%>">
						</div>


						<div class="form_row">
							<label class="contact"><strong>Votre prénom:</strong></label> <input
								type="text" name="usr_forname" class="contact_input"
								value="<%=session.getAttribute("usr_forname").toString()%>">
						</div>


						<div class="form_row">
							<label class="contact"><strong>Votre
									identifiant:</strong></label> <input type="text" name="username"
								class="contact_input" value="<%=session.getAttribute("username").toString()%>">
						</div>

						<div class="form_row">
							<label class="contact"><strong>Mot de passe:</strong></label> <input
								type="password" name="password" class="contact_input"
								value="<%=session.getAttribute("password").toString()%>">
						</div>

						<div class="form_row">
							<input type="submit" value="Enregistrement" class="register">
						</div>
					</form>
				</div>


				<div class="clear"></div>
			</div>
			<!--end of left content-->

			<div class="right_content">

				<div class="right_box">

					<jsp:include page="login_form.jsp" />



				</div>



				<!--   <div class="right_box">
             
             	<div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>Categories</div> 
                
                <ul class="list">
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>                                              
                </ul>
                
             	<div class="title"><span class="title_icon"><img src="images/bullet6.gif" alt="" title="" /></span>Partners</div> 
                
                <ul class="list">
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>                              
                </ul>      
             
             </div>  <!--end of right content-->


			</div>




			<div class="clear"></div>
		</div>
		<!--end of center content-->


		<div class="footer">
			<div class="left_footer">
				<img src="images/footer_logo.gif" alt="" title="" /><br /> <a
					href="http://csscreme.com/freecsstemplates/" title="free templates"><img
					src="images/csscreme.gif" alt="free templates"
					title="free templates" border="0" /></a>
			</div>
			<div class="right_footer">
				<a href="#">Accueil</a>

			</div>


		</div>


	</div>

</body>
</html>